package com.ntschy.sys.entity.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ezreal_geng
 */

@Data
@NoArgsConstructor  //无参构造函数
@TableName("SYS_ROLE_MENU")
@ApiModel(description = "角色菜单")
public class SysRoleMenu {

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID")
    private String id;

    @ApiModelProperty(value = "角色ID")
    @TableField(value = "RoleID")
    private String roleId;

    @ApiModelProperty(value = "菜单ID")
    @TableField(value = "MenuID")
    private String menuId;

    @ApiModelProperty(value = "0-全部 1-公司 2-部门 3-个人")
    @TableField(value = "数据权限范围")
    private Integer dataScope;
}
